package com.damie.service;

import com.damie.domain.UserAddress;
import com.baomidou.mybatisplus.extension.service.IService;
import com.damie.dto.UserAddressDto;
import com.damie.paramer.UserAddressParame;
import com.damie.paramer.UserAddressParameup;

import javax.servlet.http.HttpServletRequest;
import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Alon
 * @since 2021-01-19
 */
public interface UserAddressService extends IService<UserAddress> {

    UserAddressDto addAddress(UserAddressParame userAddressParame, HttpServletRequest request) throws Exception;

    List<UserAddressDto> queryByUser(HttpServletRequest request);

    List<UserAddress> updateByUser(String addressId,HttpServletRequest request);

    UserAddress deleteByUser(String addressId, HttpServletRequest request);

    UserAddressDto queryById(String addressId);

    UserAddressDto updateAddress(UserAddressParameup userAddressParameup, HttpServletRequest request) throws Exception;
}
